package com.bankapp.exception.bank;

import com.bankapp.domain.bank.CheckingAccount;

/**
 * Created by Student on 17.11.2014.
 */
public class OverDraftLimitExceededException extends NotEnoughFundsException {

    private CheckingAccount account;
    private Double balanceAndOverdraft;

    public CheckingAccount getAccount() {
        return account;
    }
    public Double getBalanceAndOverdraft() {
        return balanceAndOverdraft;
    }

    public OverDraftLimitExceededException(OverDraftLimitExceededException e) {
        super(e);
    }

    public OverDraftLimitExceededException(CheckingAccount account, double balanceAndOverdraft, String message) {
        super(message);
        this.account = account;
        this.balanceAndOverdraft = balanceAndOverdraft;
    }

    public OverDraftLimitExceededException(String message) {
        super(message);
    }
}
